package com.ygy;



import com.ygy.component.WebSocketServer;
import org.apache.catalina.core.ApplicationContext;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;

/**
 * Hello world!
 *
 */
@Configuration("src/main/resources/mapper")
@SpringBootApplication

//扫描让mapper包里面的东西生效
@MapperScan("com.ygy.mapper")
public class GoodsApplication
{
    public static void main( String[] args )
    {
        //创建Spring容器，运行Spring Boot应用
        SpringApplication.run(GoodsApplication.class, args);

    }
}









